package dancetiktokenumsmongo

const (
	WishSpeakerLogChangeTypeAdd     = 1 //增加
	WishSpeakerLogChangeTypeReduced = 2 //减少

	WishSpeakerScoreSourceGiftAdd         = 1 //刷礼物获得
	WishSpeakerScoreSourceSendOtherReduce = 2 //祝福他人减少
	WishSpeakerScoreSourceAdminReissue    = 3 //后台补发
)

type DanceWishSpeakerEnums struct {
}

var DanceWishSpeakerEnumsObject DanceWishSpeakerEnums

func (e DanceWishSpeakerEnums) ScoreSourceType() []int {
	return []int{
		WishSpeakerScoreSourceGiftAdd,
		WishSpeakerScoreSourceSendOtherReduce,
		WishSpeakerScoreSourceAdminReissue,
	}
}

func (e DanceWishSpeakerEnums) ScoreSourceTypeMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.ScoreSourceType() {
		m[s] = e.ScoreSourceString(s)
	}
	return m
}

func (e DanceWishSpeakerEnums) ScoreSourceString(tag int) string {
	switch tag {
	case WishSpeakerScoreSourceGiftAdd:
		return "刷礼物获得"
	case WishSpeakerScoreSourceSendOtherReduce:
		return "祝福他人减少"
	case WishSpeakerScoreSourceAdminReissue:
		return "后台补发"
	default:
		return "未知"
	}
}
